package com.sls.web.manager.game.pojo.ekhui;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class CommissionPay implements Serializable{

	/**
	 * 佣金单
	 */
	private static final long serialVersionUID = 1L;
	private String id ;
	private String payAccountId ;				//付款方账户id，即运营商账户id
	private String payAccountName ;				//付款方账户名称
	private String commissionAccountId ;		//佣金账户id			
	private String commissionAccountName ;		//佣金账户名称
	private Date accountDay ;					//账务日期
	private Date createTime ;					//创建时间
	private String payTraderId ;				//付款方商户id	
	private String payTraderName ;				//付款方商户名称
	private String commissionTraderId ;			//佣金商户id			
	private String commissionTraderName ;		//佣金商户名称
	private BigDecimal money ;					//佣金金额
	private String operatorId ;					//操作人id
	private String operatorName ;					//操作人名称
	private CommissionPay() {
		super();
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPayAccountId() {
		return payAccountId;
	}
	public void setPayAccountId(String payAccountId) {
		this.payAccountId = payAccountId;
	}
	public String getPayAccountName() {
		return payAccountName;
	}
	public void setPayAccountName(String payAccountName) {
		this.payAccountName = payAccountName;
	}

	public Date getAccountDay() {
		return accountDay;
	}
	public void setAccountDay(Date accountDay) {
		this.accountDay = accountDay;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public BigDecimal getMoney() {
		return money;
	}
	public void setMoney(BigDecimal money) {
		this.money = money;
	}
	public String getCommissionAccountId() {
		return commissionAccountId;
	}
	public void setCommissionAccountId(String commissionAccountId) {
		this.commissionAccountId = commissionAccountId;
	}
	public String getCommissionAccountName() {
		return commissionAccountName;
	}
	public void setCommissionAccountName(String commissionAccountName) {
		this.commissionAccountName = commissionAccountName;
	}
	public String getPayTraderId() {
		return payTraderId;
	}
	public void setPayTraderId(String payTraderId) {
		this.payTraderId = payTraderId;
	}
	public String getPayTraderName() {
		return payTraderName;
	}
	public void setPayTraderName(String payTraderName) {
		this.payTraderName = payTraderName;
	}
	public String getCommissionTraderId() {
		return commissionTraderId;
	}
	public void setCommissionTraderId(String commissionTraderId) {
		this.commissionTraderId = commissionTraderId;
	}
	public String getCommissionTraderName() {
		return commissionTraderName;
	}
	public void setCommissionTraderName(String commissionTraderName) {
		this.commissionTraderName = commissionTraderName;
	}
	public String getOperatorId() {
		return operatorId;
	}
	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}
	public String getOperatorName() {
		return operatorName;
	}
	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}
	public CommissionPay saveCommissionPay(Account payAccount, Account commissionAccount){
		this.setAccountDay(new Date()) ;
		this.setCommissionAccountId(commissionAccount.getAccountId()) ;
		this.setCommissionAccountName(commissionAccount.getAccountName()) ;
		this.setCommissionTraderId(commissionAccount.getTraderId()) ;
		this.setCommissionTraderName(commissionAccount.getTraderName()) ;
		this.setCreateTime(new Date()) ;
		this.setPayAccountId(payAccount.getAccountId()) ;
		this.setPayAccountName(payAccount.getAccountName()) ;
		this.setPayTraderId(payAccount.getTraderId()) ;
		this.setPayTraderName(payAccount.getTraderName()) ;
		return this ;
	}
}
